<div class="work-info shadowbox main equipmentInfoDetail work-info-new">
  <form name="equipInfo" novalidate="" autocomplete="off">
    <div class="container-header">设备新增</div>
    <div class="info-vendor">
      <div class="info-items info-vendor">
        <div class="info-title">
          <span class="title-brief">基本信息</span>
        </div>
        <div class="base-info pa-form-content editable">
          <div class="row-fl fl">
            <div class="row-item">
              <div class="pa-form-control pa-base-form-control">
                <label class="fl"><b>*</b>设备名称：</label>
                <div class="pa-input fl">
                  <input type="text" name="deviceName" required 
                    ng-model="vm.editableEquipmentInfo.deviceName" />
                </div>
                <span class="mandatory"
                  ng-show="(equipInfo.$submitted || equipInfo.deviceName.$dirty) && equipInfo.deviceName.$error.required">
                  必填
                </span>
              </div>
              <div class="pa-form-control pa-base-form-control">
                <label class="fl">内部编号：</label>
                <div class="pa-input fl">
                  <input type="text"
                    ng-model="vm.editableEquipmentInfo.innerNo" />
                </div>
              </div>
              <div class="pa-form-control pa-base-form-control">
                <label class="fl">设备型号：</label>
                <div class="pa-input fl">
                  <input type="text"
                    ng-model="vm.editableEquipmentInfo.deviceModel"/>
                </div>
              </div>
            </div>
            <div class="row-item">
              <div class="pa-form-control pa-base-form-control">
                <label class="fl">使用地点：</label>
                <div class="pa-input fl">
                  <input type="text"
                    ng-model="vm.editableEquipmentInfo.usingSites" />  
                </div>
              </div>
              <div class="pa-form-control pa-base-form-control">
                <label class="fl">牌照：</label>
                <div class="pa-input fl">
                  <input type="text"
                    ng-model="vm.editableEquipmentInfo.license"  />
                </div>
              </div>
               <div class="pa-form-control pa-base-form-control">
                <label class="fl"><b>*</b>设备等级：</label>
                <div class="pa-input fl">
                  <select name="deviceLevel" required
                    ng-model="vm.editableEquipmentInfo.deviceLevel">
                    <option value=""></option>
                    <option value="1">一般设备</option>
                    <option value="2">主要设备</option>
                    <option value="4">特种设备</option>
                  </select>
                </div>
                <span class="mandatory"
                  ng-show="(equipInfo.$submitted || equipInfo.deviceLevel.$dirty) && equipInfo.deviceLevel.$error.required">
                  必填
                </span>
              </div>        
            </div>
            <div class="row-item"> 
             <div class="pa-form-control pa-base-form-control">
                <label class="fl">操作人员：</label>
                <div class="pa-input fl">
                  <input type="text"
                    ng-model="vm.editableEquipmentInfo.operator"  />
                </div>
              </div>                 
              <div class="pa-form-control pa-base-form-control">
                <label class="fl"><b>*</b>进场时间：</label>
                <div class="pa-input fl">
                  <input type="text" ng-datepicker
                    name="approachTime" required
                    ng-model="vm.editableEquipmentInfo.approachTime"/>
                </div>
                <span class="mandatory"
                  ng-show="(equipInfo.$submitted || equipInfo.approachTime.$dirty) && equipInfo.approachTime.$error.required">
                  必填
                </span>
              </div>
              <div class="pa-form-control pa-base-form-control">
                <label class="fl"><b>*</b>维保情况：</label>
                <div class="pa-input fl">
                  <input type="text" name="maintainSituation" required
                    ng-model="vm.editableEquipmentInfo.maintainSituation" />
                </div>
                <span class="mandatory"
                  ng-show="(equipInfo.$submitted || equipInfo.maintainSituation.$dirty) && equipInfo.maintainSituation.$error.required">
                  必填
                </span>
              </div> 
            </div>
            <div class="row-item">                    
              <div class="pa-form-control pa-base-form-control">
                <label class="fl">是否租赁：</label>
                <div class="name-gender fl">
                  <input type="radio" class="sex-checkbox" name="gender" value="1" ng-model="vm.editableEquipmentInfo.isRented">是
                  <input type="radio" class="sex-checkbox" name="gender" value="0" ng-model="vm.editableEquipmentInfo.isRented">否
                </div>
              </div>
            </div>
          </div>
          <div class="row-fr">
            <div class="img-box">
              <avatar-upload
                component-id="cp1"
                pick-btn-id="avatar_picker"
                upload-url="{{fileUploadUrl.device}}" 
                image-file="vm.avatarUploadToken"></avatar-upload>
            </div>
          </div>
        </div>
        <div class="info-items">
          <div class="btn-outer">
            <a class="pa-btn"
              authorization-btn="api/deviceinfo/insertDeviceInfo"
              ng-click="vm.save(equipInfo)">
              <i class="fa fa-save" ></i>
              <span class="ml5">保存</span>
            </a>
            <a class="pa-btn reset-btn" ng-click="vm.reset()">
              <i class="fa fa-repeat"></i>
              <span class="ml5">重置</span>
            </a>
          </div> 
        </div>
      </div>
    </div>
  </form>
</div>